import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/reset.css';
import { isNewDataByTime } from '@/utils/format';
import permission from './directive/permission';
import focus from './directive/focus';
import { createFromIconfontCN } from '@ant-design/icons-vue';
const IconFont = createFromIconfontCN({
    scriptUrl: '//at.alicdn.com/t/c/font_3666205_ql887hpufun.js',
});
import * as antIcons from '@ant-design/icons-vue';

const app = createApp(App);
Object.keys(antIcons).forEach((iconName) => {
    app.component(iconName, antIcons[iconName as keyof typeof antIcons]);
});

app.config.globalProperties.$isNewDataByTime = isNewDataByTime

app.component("IconFont", IconFont)
app.use(store)
app.use(permission)
app.use(focus)
app.use(router)
app.use(Antd)
app.mount('#app');
